<?php
//
// 功能说明：mysql数据库类库，目前只支持mysqli
// $Id: db.class.php 9 2012-12-01 03:10:19Z jiangbianwanghai@gmail.com $
//
$conn = new mysqli($_C['DB']['HOST'], $_C['DB']['USER'], $_C['DB']['PASSWORD'], $_C['DB']['DATABASE']);
if (mysqli_connect_errno()) {
	exit('Mysqli连接失败：<br />错误码：'.mysqli_connect_errno().'<br />错误信息：'.mysqli_connect_error());
}
if (!$conn->set_charset("utf8")) {
	exit('错误信息：'.$conn->error);
}